<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
    <script src="../js/bootstrap.js"></script>
</head>
<body>
<?php
//获取数据集
include_once("../service/MovieService.php");

?>
<table class="table table-striped table-bordered table-hover table-condensed">
    <tr>
        <th>电影院</th>
        <th>电影名称</th>
        <th>座位行数</th>
        <th>座位列数</th>
    </tr>
    <?php
    $movieService = new MovieService();

    $aTicket = $movieService->getATicket(1);
    for ($i = 0; $i < sizeof($aTicket); $i++) {
        echo "<tr>
            <td>" . $aTicket[$i][0] . "</td>
            <td>" . $aTicket[$i][1] . "</td>
            <td>" . $aTicket[$i][2] . "</td>
            <td>" . $aTicket[$i][3] . "</td>
        </tr>";
    }
    ?>
</table>
</body>
</html>